<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {
    $router->middleware('cuid')->group(function ()use ($router){
        $router->resource('/', 'CustomerController');
        $router->resource('/customer','CustomerController');
        $router->resource('/msg','MsgController');
        $router->resource('/phone','PhoneController');
    });
});
